/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package presentation.view;

/**
 *
 * @author Joanna 8a
 */
public class PanelCrearHorario extends javax.swing.JPanel {

    /**
     * Creates new form PanelCrearHorario
     */
    public PanelCrearHorario() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        try {
            buttonGroupHorariosDisponibles =(javax.swing.ButtonGroup)java.beans.Beans.instantiate(getClass().getClassLoader(), "presentation/view.PanelHorario_buttonGroupHorariosDisponibles");
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        } catch (java.io.IOException e) {
            e.printStackTrace();
        }
        jScrollPaneCrearHorario = new javax.swing.JScrollPane();
        jTableCrearHorario = new javax.swing.JTable();
        jButtonCrearHorario = new javax.swing.JButton();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();

        setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Crear Horario", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Segoe UI Light", 1, 14), new java.awt.Color(102, 0, 102))); // NOI18N

        jTableCrearHorario.setFont(new java.awt.Font("Segoe UI Light", 0, 14)); // NOI18N
        jTableCrearHorario.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {"Horas",  new Double(1.0), "7:00 - 8:00", null, null, null, null, null, null, null},
                {"Horas",  new Double(1.0), "8:00 - 9:00", null, null, null, null, null, null, null},
                {"Horas",  new Double(1.0), "9:00 - 10:00", null, null, null, null, null, null, null},
                {"Horas",  new Double(1.0), "10:00 - 11:00", null, null, null, null, null, null, null},
                {"Horas",  new Double(1.0), "11.00 - 12:00", null, null, null, null, null, null, null},
                {"Horas",  new Double(1.0), "12:00 - 13:00", null, null, null, null, null, null, null},
                {"Horas",  new Double(1.0), "13:00 - 14:00", null, null, null, null, null, null, null},
                {"Horas",  new Double(1.0), "14:00 - 15:00", null, null, null, null, null, null, null},
                {"Horas",  new Double(1.0), "15:00 - 16:00", null, null, null, null, null, null, null},
                {"Horas",  new Double(1.0), "16:00 - 17:00", null, null, null, null, null, null, null},
                {"Horas",  new Double(1.0), "17:00 - 18:00", null, null, null, null, null, null, null},
                {"Horas",  new Double(1.0), "18:00 - 19:00", null, null, null, null, null, null, null},
                {"Horas",  new Double(1.0), "19:00 - 20:00", null, null, null, null, null, null, null},
                {"Horas",  new Double(1.0), "20:00 - 21:00", null, null, null, null, null, null, null},
                {"Horas",  new Double(1.0), "21:00 - 22:00", null, null, null, null, null, null, null}
            },
            new String [] {
                "Tiempo", "Duración", "Hora", "Domingo", "Lunes", "Martes", "Miercoles", "Jueves", "Viernes", "Sábado"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.Double.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }
        });
        jScrollPaneCrearHorario.setViewportView(jTableCrearHorario);
        jTableCrearHorario.getColumnModel().getColumn(0).setPreferredWidth(35);
        jTableCrearHorario.getColumnModel().getColumn(1).setPreferredWidth(45);
        jTableCrearHorario.getColumnModel().getColumn(2).setPreferredWidth(70);

        jButtonCrearHorario.setFont(new java.awt.Font("Segoe UI Light", 0, 14)); // NOI18N
        jButtonCrearHorario.setText("Crear Horario");
        jButtonCrearHorario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCrearHorarioActionPerformed(evt);
            }
        });

        jButton1.setFont(new java.awt.Font("Segoe UI Light", 0, 14)); // NOI18N
        jButton1.setText("Añadir Lapso");

        jButton2.setFont(new java.awt.Font("Segoe UI Light", 0, 14)); // NOI18N
        jButton2.setText("Eliminar Lapso");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPaneCrearHorario)
                .addContainerGap())
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGap(131, 131, 131)
                .addComponent(jButton1)
                .addGap(94, 94, 94)
                .addComponent(jButton2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 76, Short.MAX_VALUE)
                .addComponent(jButtonCrearHorario)
                .addGap(155, 155, 155))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPaneCrearHorario, javax.swing.GroupLayout.PREFERRED_SIZE, 267, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 17, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonCrearHorario)
                    .addComponent(jButton1)
                    .addComponent(jButton2))
                .addContainerGap())
        );
    }// </editor-fold>//GEN-END:initComponents

    private void jButtonCrearHorarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCrearHorarioActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jButtonCrearHorarioActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.ButtonGroup buttonGroupHorariosDisponibles;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButtonCrearHorario;
    private javax.swing.JScrollPane jScrollPaneCrearHorario;
    private javax.swing.JTable jTableCrearHorario;
    // End of variables declaration//GEN-END:variables
}
